|
|
|
|
|
|
|
A point is represented by its coordinates in parentheses. The point with X coordinate 10, Y coordinate 37, and Z coordinate 9 in three-dimensional space is written (10, 37, 9). Points have a location but no size. You can think of them as being infinitely small. |
|
|
|
|
|
|
|
|
A vector has a direction and a length. A vector is represented by components giving the vector's direction of movement written in pointed brackets. For example, <5, 20, 10> is a vector that represents the direction that moves 5 units in the X direction, 20 units in the Y direction, and 10 units in the Z direction. |
|
|
|
|
|
|
|
|
You can visualize a vector as being an arrow with its tail at the origin and its head at the coordinates given by its components, but that is a little misleading. A vector has direction and length but no location. A vector is not positioned at any particular place in space. |
|
|
|
|
|
|
|
|
Points and vectors have their own special arithmetic. If you add a vector to a point, you get another point. In Figure 19.1, the vector V is added to the point P to give the point P'. |
|
|
|
|
|
|
|
|
Mathematically, you can add a vector to a point by adding the vector's components to the point's coordinates. If the point P has coordinates (px, py, pz) and the vector has components <vx, vy, vz>, the resulting point has coordinates (px + vx, py + vy, pz + vz). |
|
|
|
|
|
|
|
|
By rearranging the equation P + V = P', you can get an equation for finding the vector between two points. The vector from point P to point P' is given by V = P' - P. Note that this is the opposite of the vector from point P' to the point P. These two vectors point in opposite directions. |
|
|
|
|
|
|
|
|
To get the components of a vector between two points mathematically, subtract the corresponding coordinates as in <p'x - px, p'y - py, p'z - pz>. |
|
|
|
|
|
|
|
|
Subtracting two points gives a vector, but adding two points does not give anything particularly useful. |
|
|
|
|
|
|
|
|
A vector plus a vector gives another vector as shown in Figure 19.2. Keep in mind that the result is a vector, so it has direction and length but no location. Mathematically, you calculate the components of the result vector by adding the corresponding components of the two other vectors: < v1x + v2x, vly + v2y, v1z + v2z>. |
|
|
|
|
|
|
|
|
When you add two nonparallel vectors, the new vector lies in the same plane as the first two. In fact, if A and B are nonparallel vectors, C = i * A + j * B gives another vector in the same plane for any real values of i and j. |
|
|
|
|
|
|
|
|
Figure 19.1
A point plus a vector equals a point. |
|
|
|
|
|